﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace HSC
{
    public partial class SetPassword : Form
    {
        public SetPassword()
        {
            InitializeComponent();
        }

        private void btnOk_Click(object sender, EventArgs e)
        {
            if (txtFTPPwd.Text != string.Empty)
            {
                Settings.Default.FTPPassword = new TripleDESStringEncryptor().EncryptString(txtFTPPwd.Text);
                Settings.Default.Save();
            }
            if (txtMailPwd.Text != string.Empty)
            {
                Settings.Default.Password = new TripleDESStringEncryptor().EncryptString(txtMailPwd.Text);
                Settings.Default.Save();
            }
        }
    }
}
